<?php
if (!defined('BASEPATH')) exit('No direct script access allowed');
?>

<!-- JavaScript -->
<script type="text/javascript" src="<?php echo base_url() ?>js/wufoo.js"></script>
<script type="text/javascript" src="<?php echo base_url() ?>js/zebra_datepicker.js"></script>

<!-- CSS -->
<link rel="stylesheet" type="text/css" href="<?php echo base_url() ?>css/form/form.css" media="screen, tv, projection" title="Default" />
<link rel="stylesheet" href="<?php echo base_url() ?>css/zebra_datepicker_metallic.css" type="text/css">
<link rel="stylesheet" type="text/css" href="<?= base_url() ?>css/chosen.css" media="screen, tv, projection" title="Default" />


<div id="container">
	<?
    //Setting Awal Value Jika Prosedur yang dilakukan adalah prosedur input biasa.
	$value = array(
		'legend'			=> "Form Rekapitulasi Data",
		'act_form'			=> "data_rekap"
	);
	
	?>
	<?php echo form_open_multipart($value["act_form"],'class="wufoo" name="menu_rekap"'); ?>
	<fieldset class="fieldset">
	<legend class="legend">
		<?= $value["legend"] ?> |
	</legend>
	
	<div class="separator">
	</div>
	
 <!-- Konten -------------------------------------------------------------------------->
 <div id="contentform">
 <?$atrib='style="width:250px"; class="chzn-select field"'?>
 <?$atrib_bln1='style="width:250px;" id="bulan1" class="chzn-select field"'?>
 <?$atrib_bln2='style="width:250px;" id="bulan2" class="chzn-select field"'?>
 <?$atrib_prg='style="width:250px;" id="program" class="chzn-select field"'?>
 <?$atrib_kcm='style="width:250px;" id="kelurahan" class="chzn-select field"'?> 
 <?$atrib_status='style="width:250px;" id="status_bayar" class="chzn-select field"'?>

	<ul>
				<li>
                    <label class="desc">Dokumen</label>
                        <div>
                             <?	echo form_dropdown('program', $program_options, set_value('program'),$atrib_prg); ?>
                        </div>
                    <p class="instruct">
                            Pilih Salah Satu Dokumen
                    </p>
				</li>

				<li>
                    <label class="desc">Tahun *</label>
                        <div>
                                <? 
                                //list tahun
                                if(function_exists("date_default_timezone_set") and function_exists("date_default_timezone_get"))
                                    @date_default_timezone_set(@date_default_timezone_get());
                                 
							$options['all'] = "-- Pilih Tahun --";
							for($thn=2000;$thn<=date("Y")+5;$thn++)
							{
								$options[$thn] = $thn;
							}
								echo form_dropdown('tahun',$options,set_value('tahun'),$atrib);	
                                ?>
                        </div>
						
                    <p class="instruct">
                            Wajib memilih salah satu tahun			
                    </p>
                    <?php echo form_error('tahun'); ?>
                </li>

                <li>
                    <label class="desc">Bulan</label>
                        <div>
                             <?	echo form_dropdown('bulan1', $bulan_options, set_value('bulan1'),$atrib_bln1); ?>
                        </div>
                    <p class="instruct">
                            Pilih Bulan
                    </p>
				</li>

				<li>
                    <label class="desc">Sampai Bulan</label>
                        <div>
                             <?	echo form_dropdown('bulan2', $bulan_options, set_value('bulan2'),$atrib_bln2); ?>
                        </div>
                    <p class="instruct">
                            Pilih Bulan
                    </p>
				</li>		
									
				<li>
                    <label class="desc">Kecamatan</label>
                        <div>
                             <?	echo form_dropdown('kecamatan', $kecamatan_options, set_value('kecamatan'),$atrib_kcm); ?>
                        </div>
                    <p class="instruct">
                            Kecamatan yang dipilih
                    </p>
                </li>

                <li>
                    <label class="desc">Status Pembayaran</label>
                        <div>
                             <?	echo form_dropdown('status_bayar', $status_options, set_value('status_bayar'),$atrib_status); ?>
                        </div>
                    <p class="instruct">
                            Status pembayaran yang dipilih
                    </p>
                </li>
				
		
		<li class="buttons">
		  <input id="submit" type="submit" value="Rekap" />
		  <input id="reset" type="reset" value="Reset" />
		</li>
	</ul>
	
</div>
</fieldset>
<?= form_close(); ?>

<script type="text/javascript" src="<?= base_url() ?>js/chosen.jquery.js"></script>
	<script type="text/javascript">
			$(".chzn-select").chosen({no_results_text: "Data yang dicari tidak ditemukan"});
		</script>

</div><!--container-->